<?php
// Includes
include_once('settings.php');
include_once('frontend/constructor/autoloader.php');


// Globale Daten instanziieren
$registry = Yapary_SingletonRegistry::getInstance();
$registry->baseurl			= BASEURL;
$registry->oSql				= new Yapary_Db_Sql_Connector(SERVER, DB_NAME, DB_USER, DB_PASSWORD);
$registry->oMetaTag			= new Yapary_Header_Metatag();

$registry->oXmlTranslator	= new Yapary_Translation_XmlTranslator(file_get_contents(BASEURL.'frontend/data/translation.xml'), COUNTRY_CODE);
$registry->oMainMenu		= new Yapary_Menu_XmlMenu(file_get_contents(PROJECT_ROOT.'frontend/data/main_menu_'.COUNTRY_CODE.'.xml'), '', 'submenu');
$registry->oFooterMenu		= new Yapary_Menu_XmlMenu(file_get_contents(PROJECT_ROOT.'frontend/data/footer_menu_'.COUNTRY_CODE.'.xml'), '');


include_once('frontend/constructor/mvc_loader.php');
include_once('layout.phtml');
include_once('exception.php');